package com.sky.directdeal.helper;

import android.content.Context;

import com.sky.directdeal.listener.ServiceResponseListener;
import com.sky.directdeal.listener.UiUpdateListener;
import com.sky.directdeal.manager.ServiceManager;
import com.sky.local_ads.store_list.StoreResponse;

public class BusinessListActivityHelper {
	
	public static void storeListServiceCall(Context context,String catId,String subCatId,String localityId,final UiUpdateListener uiUpdateListener){
		ServiceManager.getStoreList(context,String.valueOf(catId),String.valueOf(subCatId),String.valueOf(localityId), new ServiceResponseListener<StoreResponse>() {
			
			@Override
			public void onSuccess(StoreResponse response) {
				uiUpdateListener.OnUpdateUI(response);
			}
			
			@Override
			public void onFailure(Throwable throwable, String errorResponse) {
			    uiUpdateListener.OnFailure(errorResponse);
			}
		});
	}

}
